
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class GuildConstantCfg : public ManualSingleton <GuildConstantCfg>
{
	friend ManualSingleton <GuildConstantCfg>;
public:
	GuildConstantCfg();
	~GuildConstantCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const GuildConstantCfgInfo *GetGuildConstantCfgInfo(int32_t constantid);
	const GuildConstantCfgMap *GetGuildConstantCfgMap() { return &m_GuildConstantCfgMap; }
private:
	GuildConstantCfgMap m_GuildConstantCfgMap;
};

#define  g_MakeGuildConstantCfgTable() (GuildConstantCfg::Instance())
#define  g_GetGuildConstantCfgTable() (GuildConstantCfg::GetInstance())
#define  g_DelGuildConstantCfgTable() (GuildConstantCfg::Destroy())